{include file="public/header" /}



<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>{$Think.lang.ds_storehelp}</h3>
                <h5></h5>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>

    <form method="get" action="" name="formSearch" id="formSearch">
        <div class="ds-search-form">
            <dl>
                <dt>{$Think.lang.help_title}</dt>
                <dd><input type="text" class="text" name="key" value="{$Request.get.key}" /></dd>
            </dl>
            <dl>
                <dt>{$Think.lang.helptype_id}</dt>
                <dd>
                    <select name="helptype_id" id="helptype_id">
                        <option value="">{$Think.lang.ds_please_choose}...</option>
                        {notempty name="helptype_list"}
                        {foreach name="helptype_list" item="val"}
                        <option {if $val.helptype_id==$Request.get.helptype_id}selected=selected{/if} value="{$val.helptype_id}">{$val.helptype_name}</option>
                        {/foreach}
                        {/notempty}
                    </select>
                </dd>
            </dl>
            <div class="btn_group">
                <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
                <a href="{:url('Storehelp/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
            </div>
        </div>
        

    </form>
    
    <div class="explanation" id="explanation">
        <div class="title" id="checkZoom">
            <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
            <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
        </div>
        <ul>
            <li>{$Think.lang.storehelp_index_help1}</li>
        </ul>
    </div>

    <table class="ds-default-table">
        <thead>
        <tr class="thead">
            <th>{$Think.lang.ds_sort}</th>
            <th>{$Think.lang.help_title}</th>
            <th>{$Think.lang.helptype_id}</th>
            <th class="align-center">{$Think.lang.help_updatetime}</th>
            <th class="align-center">{$Think.lang.ds_handle}</th>
        </tr>
        </thead>
        <tbody>
        {notempty name="help_list"}
        {foreach name="help_list" item="val"}
        <tr class="hover" id="ds_row_{$val.help_id}">
            <td class="w48 sort">{$val.help_sort}</td>
            <td>{$val.help_title}</td>
            <td>{$val.helptype_name}</td>
            <td class="w150 align-center">{$val.help_updatetime|date="Y-m-d H:i:s"}</td>
            <td class="w150 align-center">
                <a href="{:url('Storehelp/edit_help',['help_id'=>$val.help_id])}" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
                <a href="javascript:dsLayerConfirm('{:url('Storehelp/del_help',['help_id'=>$val.help_id])}','{$Think.lang.ds_ensure_del}',{$val.help_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
            </td>
        </tr>
        {/foreach}
        {else /}
        <tr class="no_data">
            <td colspan="15">{$Think.lang.ds_no_record}</td>
        </tr>
       {/notempty}
        </tbody>
    </table>
    {notempty name="help_list"}
    {$show_page|raw}
    {/notempty}
</div>

